<? include(APPPATH . "views/admin/header.php"); ?>
<? include(APPPATH . "views/admin/sidebar.php"); ?>

<div class="span10" id="content">
  <div class="page">
        <h1>Todos os Projetos</h1>
        
        <table class="table table-striped tablesorter">
            <thead>
                <tr>
                    <th class="header">Nome</th>
                    <th class="header">CPF / CNPJ</th>
                    <th class="header">E-mail</th>
                    <th class="header">Telefone</th>
                    <th class="header" width="160">Ações</th>
                </tr>
            </thead>
            <tbody>
            <? foreach($clientes as $cliente):
                ?>
                <tr>                    
                    <td><?= $cliente->getNome(); ?></td>
                    <td><?= $cliente->getCpf(); ?></td>
                    <td><?= $cliente->getEmail(); ?></td>
                    <td><?= $cliente->getTelefone(); ?></td>
                    <td>
                        <div class="btn-group">
                            <a class="btn btn-mini">Editar</a>
                            <a class="btn btn-mini btn-danger" href="<?= site_url("clientes/excluir/{$cliente->getId()}") ?>">Excluir</a>
                        </div>
                    </td>
                </tr>
            <? endforeach; ?>
            </tbody>
        </table>
      </div>
</div>

<? include(APPPATH . "views/admin/footer.php"); ?>
